package com.silverbox.sweeporder.common;

/**
 * <pre>
 * 功    能:
 * 涉及版本:
 * 创 建 者: YangYangjun
 * 日    期: 2020-06-08 15:05
 * </pre>
 */
public class PayMotionConstants {

    //支付状态
    public enum PayDetailPayStatus{

        UNPAID(0,"未支付"),
        PAID(1,"已支付"),
        REFUNDED(-1,"已退款"),
        CASH(-2,"现金支出"),
        ;

        private Integer value;
        private String name;

        PayDetailPayStatus(Integer value, String name) {
            this.value = value;
            this.name = name;
        }

        public Integer getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    //支付方式类型
    public enum PayDetailPayType{

        ONLINE(0,"线上支付"),
        OFFLINE(1,"线下支付"),
        ;

        private Integer value;
        private String name;

        PayDetailPayType(Integer value, String name) {
            this.value = value;
            this.name = name;
        }

        public Integer getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    //支付方式类型
    public enum PayDetailIsSystemPay{

        CUSTOM(0,"商家自定义"),
        SYSTEM(1,"系统支持"),
        ;

        private Integer value;
        private String name;

        PayDetailIsSystemPay(Integer value, String name) {
            this.value = value;
            this.name = name;
        }

        public Integer getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    //支付方式
    public enum OrderPayModel{

        MEMBER_CARD(20,"会员卡支付"),
        MEMBER_CONSUME_POINTS(30,"会员积分消费"),
        MIXED(50,"混合支付"),
        CASH(9,"现金支付"),
        ;

        private Integer value;
        private String name;

        OrderPayModel(Integer value, String name) {
            this.value = value;
            this.name = name;
        }

        public Integer getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    //是否代付
    public enum Whether{
        TRUE(1,"是"),
        FALSE(0,"否"),
        ;
        private Integer value;
        private String name;

        Whether(Integer value, String name) {
            this.value = value;
            this.name = name;
        }

        public Integer getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }
}
